#ifndef BOXPLATFORM_H_
#define BOXPLATFORM_H_

#include "sceneObject.h"
#include "model/actions/solid.h"

class BoxPlatform : public SceneObject , public Solid{
	public:
		BoxPlatform(const Cube& cube,const ObjectModelPtr& ptr)
			:	SceneObject(cube,ptr),Solid(cube){}
		~BoxPlatform(){}

		void setModelMatrix(){
			Point tr = this->dimensions.center();
			//tr.x3 -= 0.5f;
			glTranslatef(tr.x1,tr.x2,tr.x3);
			glScalef(this->dimensions.width(),this->dimensions.depth(),this->dimensions.height()*3);
		}

		void accelerate(float accel){}
		void notifyCollided(Solid* obj){}
		void notifyCollision(Solid* obj){}
		void notifySolidPositionChange(float vel=0){}

		static std::string name(){
			return "platform";
		}
};

#endif /* BOXPLATFORM_H_ */
